home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / mac / MAC / Programming Stuff / Interfaces / PInterfaces / ASRegistry.p < prev    next >
Encoding:
Text File  |  1994-11-11  |  10.9 KB  |  310 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        ASRegistry.p
  3.  
  4.      Copyright:    © 1984-1994 by Apple Computer, Inc.
  5.                  All rights reserved.
  6.  
  7.      Version:    Universal Interfaces 2.0a3  ETO #16, MPW prerelease.  Friday, November 11, 1994. 
  8.  
  9.      Bugs?:        If you find a problem with this file, send the file and version
  10.                  information (from above) and the problem description to:
  11.  
  12.                      Internet:    apple.bugs@applelink.apple.com
  13.                      AppleLink:    APPLE.BUGS
  14.  
  15. }
  16.  
  17. {$IFC UNDEFINED UsingIncludes}
  18. {$SETC UsingIncludes := 0}
  19. {$ENDC}
  20.  
  21. {$IFC NOT UsingIncludes}
  22.  UNIT ASRegistry;
  23.  INTERFACE
  24. {$ENDC}
  25.  
  26. {$IFC UNDEFINED __ASREGISTRY__}
  27. {$SETC __ASREGISTRY__ := 1}
  28.  
  29. {$I+}
  30. {$SETC ASRegistryIncludes := UsingIncludes}
  31. {$SETC UsingIncludes := 1}
  32.  
  33.  
  34. {$IFC UNDEFINED __APPLEEVENTS__}
  35. {$I AppleEvents.p}
  36. {$ENDC}
  37. {    Errors.p                                                    }
  38. {        ConditionalMacros.p                                        }
  39. {    Types.p                                                        }
  40. {    Memory.p                                                    }
  41. {        MixedMode.p                                                }
  42. {    OSUtils.p                                                    }
  43. {    Events.p                                                    }
  44. {        Quickdraw.p                                                }
  45. {            QuickdrawText.p                                        }
  46. {    EPPC.p                                                        }
  47. {        PPCToolbox.p                                            }
  48. {            AppleTalk.p                                            }
  49. {        Processes.p                                                }
  50. {            Files.p                                                }
  51. {    Notification.p                                                }
  52.  
  53. {$IFC UNDEFINED __AEREGISTRY__}
  54. {$I AERegistry.p}
  55. {$ENDC}
  56.  
  57. {$IFC UNDEFINED __AEOBJECTS__}
  58. {$I AEObjects.p}
  59. {$ENDC}
  60.  
  61. {$PUSH}
  62. {$ALIGN MAC68K}
  63. {$LibExport+}
  64.  
  65. CONST
  66.     keyAETarget                    = 'targ';                        {  0x74617267  }
  67.     keySubjectAttr                = 'subj';                        {  0x7375626a  }
  68. { Magic 'returning' parameter: }
  69.     keyASReturning                = 'Krtn';                        {  0x4b72746e  }
  70. { AppleScript Specific Codes: }
  71.     kASAppleScriptSuite            = 'ascr';                        {  0x61736372  }
  72.     kASTypeNamesSuite            = 'tpnm';                        {  0x74706e6d  }
  73. { dynamic terminologies }
  74.     typeAETE                    = 'aete';                        {  0x61657465  }
  75.     typeAEUT                    = 'aeut';                        {  0x61657574  }
  76.     kGetAETE                    = 'gdte';                        {  0x67647465  }
  77.     kGetAEUT                    = 'gdut';                        {  0x67647574  }
  78.     kUpdateAEUT                    = 'udut';                        {  0x75647574  }
  79.     kUpdateAETE                    = 'udte';                        {  0x75647465  }
  80.     kCleanUpAEUT                = 'cdut';                        {  0x63647574  }
  81.     kASComment                    = 'cmnt';                        {  0x636d6e74  }
  82.     kASLaunchEvent                = 'noop';                        {  0x6e6f6f70  }
  83.     keyScszResource                = 'scsz';                        {  0x7363737A  }
  84.     typeScszResource            = 'scsz';                        {  0x7363737A  }
  85. { subroutine calls }
  86.     kASSubroutineEvent            = 'psbr';                        {  0x70736272  }
  87.     keyASSubroutineName            = 'snam';
  88.  
  89. { Operator Events: }
  90. { Binary: }
  91.     kASAdd                        = '+   ';                        {  0x2b202020  }
  92.     kASSubtract                    = '-   ';                        {  0x2d202020  }
  93.     kASMultiply                    = '*   ';                        {  0x2a202020  }
  94.     kASDivide                    = '/   ';                        {  0x2f202020  }
  95.     kASQuotient                    = 'div ';                        {  0x64697620  }
  96.     kASRemainder                = 'mod ';                        {  0x6d6f6420  }
  97.     kASPower                    = '^   ';                        {  0x5e202020  }
  98.     kASEqual                    = kAEEquals;
  99.     kASNotEqual                    = '≠   ';                        {  0xad202020  }
  100.     kASGreaterThan                = kAEGreaterThan;
  101.     kASGreaterThanOrEqual        = kAEGreaterThanEquals;
  102.     kASLessThan                    = kAELessThan;
  103.     kASLessThanOrEqual            = kAELessThanEquals;
  104.     kASComesBefore                = 'cbfr';                        {  0x63626672  }
  105.     kASComesAfter                = 'cafr';                        {  0x63616672  }
  106.     kASConcatenate                = 'ccat';                        {  0x63636174  }
  107.     kASStartsWith                = kAEBeginsWith;
  108.     kASEndsWith                    = kAEEndsWith;
  109.     kASContains                    = kAEContains;
  110.  
  111.     kASAnd                        = kAEAND;
  112.     kASOr                        = kAEOR;
  113. { Unary: }
  114.     kASNot                        = kAENOT;
  115.     kASNegate                    = 'neg ';                        {  0x6e656720  }
  116.     keyASArg                    = 'arg ';
  117.  
  118. { event code for the 'error' statement }
  119.     kASErrorEventCode            = 'err ';                        {  0x65727220  }
  120.     kOSAErrorArgs                = 'erra';                        {  0x65727261  }
  121. { Properties: }
  122.     pLength                        = 'leng';                        {  0x6c656e67  }
  123.     pReverse                    = 'rvse';                        {  0x72767365  }
  124.     pRest                        = 'rest';                        {  0x72657374  }
  125.     pInherits                    = 'c@#^';                        {  0x6340235e  }
  126. { User-Defined Record Fields: }
  127.     keyASUserRecordFields        = 'usrf';                        {  0x75737266  }
  128.     typeUserRecordFields        = typeAEList;
  129.  
  130. { Prepositions: }
  131.     keyASPrepositionAt            = 'at  ';                        {  0x61742020  }
  132.     keyASPrepositionIn            = 'in  ';                        {  0x696e2020  }
  133.     keyASPrepositionFrom        = 'from';                        {  0x66726f6d  }
  134.     keyASPrepositionFor            = 'for ';                        {  0x666f7220  }
  135.     keyASPrepositionTo            = 'to  ';                        {  0x746f2020  }
  136.     keyASPrepositionThru        = 'thru';                        {  0x74687275  }
  137.     keyASPrepositionThrough        = 'thgh';                        {  0x74686768  }
  138.     keyASPrepositionBy            = 'by  ';                        {  0x62792020  }
  139.     keyASPrepositionOn            = 'on  ';                        {  0x6f6e2020  }
  140.     keyASPrepositionInto        = 'into';                        {  0x696e746f  }
  141.     keyASPrepositionOnto        = 'onto';                        {  0x6f6e746f  }
  142.     keyASPrepositionBetween        = 'btwn';                        {  0x6274776e  }
  143.     keyASPrepositionAgainst        = 'agst';                        {  0x61677374  }
  144.     keyASPrepositionOutOf        = 'outo';                        {  0x6f75746f  }
  145.     keyASPrepositionInsteadOf    = 'isto';                        {  0x6973746f  }
  146.     keyASPrepositionAsideFrom    = 'asdf';                        {  0x61736466  }
  147.     keyASPrepositionAround        = 'arnd';                        {  0x61726e64  }
  148.     keyASPrepositionBeside        = 'bsid';                        {  0x62736964  }
  149.     keyASPrepositionBeneath        = 'bnth';                        {  0x626e7468  }
  150.     keyASPrepositionUnder        = 'undr';
  151.  
  152.     keyASPrepositionOver        = 'over';                        {  0x6f766572  }
  153.     keyASPrepositionAbove        = 'abve';                        {  0x61627665  }
  154.     keyASPrepositionBelow        = 'belw';                        {  0x62656c77  }
  155.     keyASPrepositionApartFrom    = 'aprt';                        {  0x61707274  }
  156.     keyASPrepositionGiven        = 'givn';                        {  0x6769766e  }
  157.     keyASPrepositionWith        = 'with';                        {  0x77697468  }
  158.     keyASPrepositionWithout        = 'wout';                        {  0x776f7574  }
  159.     keyASPrepositionAbout        = 'abou';                        {  0x61626f75  }
  160.     keyASPrepositionSince        = 'snce';                        {  0x736e6365  }
  161.     keyASPrepositionUntil        = 'till';
  162.  
  163. { Terminology & Dialect things: }
  164.     kDialectBundleResType        = 'Dbdl';                        {  0x4462646c  }
  165. { AppleScript Classes and Enums: }
  166.     cConstant                    = typeEnumerated;
  167.     cClassIdentifier            = pClass;
  168.     cObjectBeingExamined        = typeObjectBeingExamined;
  169.     cList                        = typeAEList;
  170.     cSmallReal                    = typeSMFloat;
  171.     cReal                        = typeFloat;
  172.     cRecord                        = typeAERecord;
  173.     cReference                    = cObjectSpecifier;
  174.     cUndefined                    = 'undf';                        {  0x756e6466  }
  175.     cSymbol                        = 'symb';                        {  0x73796d62  }
  176.     cLinkedList                    = 'llst';                        {  0x6c6c7374  }
  177.     cVector                        = 'vect';                        {  0x76656374  }
  178.     cEventIdentifier            = 'evnt';                        {  0x65766e74  }
  179.     cKeyIdentifier                = 'kyid';                        {  0x6b796964  }
  180.     cUserIdentifier                = 'uid ';                        {  0x75696420  }
  181.     cPreposition                = 'prep';                        {  0x70726570  }
  182.     cKeyForm                    = enumKeyForm;
  183.     cScript                        = 'scpt';                        {  0x73637074  }
  184.     cHandler                    = 'hand';                        {  0x68616e64  }
  185.     cProcedure                    = 'proc';
  186.  
  187.     cClosure                    = 'clsr';                        {  0x636c7372  }
  188.     cRawData                    = 'rdat';                        {  0x72646174  }
  189.     cString                        = typeChar;
  190.     cStringClass                = typeChar;
  191.     cNumber                        = 'nmbr';                        {  0x6e6d6272  }
  192.     cListOrRecord                = 'lr  ';                        {  0x6c722020  }
  193.     cListOrString                = 'ls  ';                        {  0x6c732020  }
  194.     cListRecordOrString            = 'lrs ';                        {  0x6c727320  }
  195.     cNumberOrDateTime            = 'nd  ';                        {  0x6e642020  }
  196.     cNumberDateTimeOrString        = 'nds ';                        {  0x6e647320  }
  197.     cSeconds                    = 'scnd';                        {  0x73636e64  }
  198.     enumBooleanValues            = 'boov';                        {  0x626f6f76  }
  199.     kAETrue                        = typeTrue;
  200.     kAEFalse                    = typeFalse;
  201.     enumMiscValues                = 'misc';                        {  0x6d697363  }
  202.     kASCurrentApplication        = 'cura';                        {  0x63757261  }
  203. { User-defined property ospecs: }
  204.     formUserPropertyID            = 'usrp';
  205.  
  206. { Global properties: }
  207.     pASIt                        = 'it  ';                        {  0x69742020  }
  208.     pASMe                        = 'me  ';                        {  0x6d652020  }
  209.     pASResult                    = 'rslt';                        {  0x72736c74  }
  210.     pASSpace                    = 'spac';                        {  0x73706163  }
  211.     pASReturn                    = 'ret ';                        {  0x72657420  }
  212.     pASTab                        = 'tab ';                        {  0x74616220  }
  213.     pASPi                        = 'pi  ';                        {  0x70692020  }
  214.     pASParent                    = 'pare';                        {  0x70617265  }
  215.     kASInitializeEventCode        = 'init';                        {  0x696e6974  }
  216.     pASPrintLength                = 'prln';                        {  0x70726c6e  }
  217.     pASPrintDepth                = 'prdp';                        {  0x70726470  }
  218.     pASTopLevelScript            = 'ascr';
  219.  
  220. { Considerations }
  221.     kAECase                        = 'case';                        {  0x63617365  }
  222.     kAEDiacritic                = 'diac';                        {  0x64696163  }
  223.     kAEWhiteSpace                = 'whit';                        {  0x77686974  }
  224.     kAEHyphens                    = 'hyph';                        {  0x68797068  }
  225.     kAEExpansion                = 'expa';                        {  0x65787061  }
  226.     kAEPunctuation                = 'punc';                        {  0x70756e63  }
  227.     kAEZenkakuHankaku            = 'zkhk';                        {  0x7a6b686b  }
  228.     kAESmallKana                = 'skna';                        {  0x736b6e61  }
  229.     kAEKataHiragana                = 'hika';                        {  0x68696b61  }
  230. { AppleScript considerations: }
  231.     kASConsiderReplies            = 'rmte';                        {  0x726d7465  }
  232.     enumConsiderations            = 'cons';
  233.  
  234.     cCoercion                    = 'coec';                        {  0x636f6563  }
  235.     cCoerceUpperCase            = 'txup';                        {  0x74787570  }
  236.     cCoerceLowerCase            = 'txlo';                        {  0x74786c6f  }
  237.     cCoerceRemoveDiacriticals    = 'txdc';                        {  0x74786463  }
  238.     cCoerceRemovePunctuation    = 'txpc';                        {  0x74787063  }
  239.     cCoerceRemoveHyphens        = 'txhy';                        {  0x74786879  }
  240.     cCoerceOneByteToTwoByte        = 'txex';                        {  0x74786578  }
  241.     cCoerceRemoveWhiteSpace        = 'txws';                        {  0x74787773  }
  242.     cCoerceSmallKana            = 'txsk';                        {  0x7478736b  }
  243.     cCoerceZenkakuhankaku        = 'txze';                        {  0x74787a65  }
  244.     cCoerceKataHiragana            = 'txkh';                        {  0x74786b68  }
  245. { Lorax things: }
  246.     cZone                        = 'zone';                        {  0x7a6f6e65  }
  247.     cMachine                    = 'mach';                        {  0x6d616368  }
  248.     cAddress                    = 'addr';                        {  0x61646472  }
  249.     cRunningAddress                = 'radd';                        {  0x72616464  }
  250.     cStorage                    = 'stor';
  251.  
  252. { DateTime things: }
  253.     pASWeekday                    = 'wkdy';                        {  0x776b6479  }
  254.     pASMonth                    = 'mnth';                        {  0x6d6e7468  }
  255.     pASDay                        = 'day ';                        {  0x64617920  }
  256.     pASYear                        = 'year';                        {  0x79656172  }
  257.     pASTime                        = 'time';                        {  0x74696d65  }
  258.     pASDateString                = 'dstr';                        {  0x64737472  }
  259.     pASTimeString                = 'tstr';                        {  0x74737472  }
  260. { Months }
  261.     cMonth                        = pASMonth;
  262.     cJanuary                    = 'jan ';                        {  0x6a616e20  }
  263.     cFebruary                    = 'feb ';                        {  0x66656220  }
  264.     cMarch                        = 'mar ';                        {  0x6d617220  }
  265.     cApril                        = 'apr ';                        {  0x61707220  }
  266.     cMay                        = 'may ';                        {  0x6d617920  }
  267.     cJune                        = 'jun ';                        {  0x6a756e20  }
  268.     cJuly                        = 'jul ';                        {  0x6a756c20  }
  269.     cAugust                        = 'aug ';                        {  0x61756720  }
  270.     cSeptember                    = 'sep ';                        {  0x73657020  }
  271.     cOctober                    = 'oct ';                        {  0x6f637420  }
  272.     cNovember                    = 'nov ';                        {  0x6e6f7620  }
  273.     cDecember                    = 'dec ';
  274.  
  275. { Weekdays }
  276.     cWeekday                    = pASWeekday;
  277.     cSunday                        = 'sun ';                        {  0x73756e20  }
  278.     cMonday                        = 'mon ';                        {  0x6d6f6e20  }
  279.     cTuesday                    = 'tue ';                        {  0x74756520  }
  280.     cWednesday                    = 'wed ';                        {  0x77656420  }
  281.     cThursday                    = 'thu ';                        {  0x74687520  }
  282.     cFriday                        = 'fri ';                        {  0x66726920  }
  283.     cSaturday                    = 'sat ';                        {  0x73617420  }
  284. { AS 1.1 Globals: }
  285.     pASQuote                    = 'quot';                        {  0x71756f74  }
  286.     pASSeconds                    = 'secs';                        {  0x73656373  }
  287.     pASMinutes                    = 'min ';                        {  0x6d696e20  }
  288.     pASHours                    = 'hour';                        {  0x686f7572  }
  289.     pASDays                        = 'days';                        {  0x64617973  }
  290.     pASWeeks                    = 'week';                        {  0x7765656b  }
  291. { Writing Code things: }
  292.     cWritingCodeInfo            = 'citl';                        {  0x6369746c  }
  293.     pScriptCode                    = 'pscd';                        {  0x70736364  }
  294.     pLangCode                    = 'plcd';                        {  0x706c6364  }
  295. { Magic Tell and End Tell events for logging: }
  296.     kASMagicTellEvent            = 'tell';                        {  0x74656c6c  }
  297.     kASMagicEndTellEvent        = 'tend';
  298.  
  299.  
  300. {$ALIGN RESET}
  301. {$POP}
  302.  
  303. {$SETC UsingIncludes := ASRegistryIncludes}
  304.  
  305. {$ENDC} {__ASREGISTRY__}
  306.  
  307. {$IFC NOT UsingIncludes}
  308.  END.
  309. {$ENDC}
  310.